<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>
<%@ page import="performReservation.SMMDBBean"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.Vector"%>

<%!
	Vector<String[]> vec = new Vector<String[]>();
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

</head>
<body>
	<center><FONT SIZE="40" COLOR=""><B>Customers </B></FONT></center>
	<!--  performance table -->
		<TABLE border ="3" align="center">
	
			<TR>
				<TH>Email:</TH>
				<TH>Name:</TH>
				
				<TH>Address</TH>
				<TH>Nickname</TH>
				
			</TR>
			<%
				SMMDBBean pProcess = SMMDBBean.getInstance();
				vec = pProcess.getAllCustomers();
				if(vec!=null){
					for(int i = 0; i < vec.size(); i++){
						String[] str = new String[5];
						str = vec.get(i);
						
						%>
						<TR>
							<TD><a href="asModifyCus.jsp?email=<%=str[0] %>"><%=str[0] %></a></TD>
							<TD><%=str[2] %></TD>
							<TD><%=str[3] %></TD>
							<TD><%=str[4] %></TD>
					
						</TR>
						<%
					}
					
				}
			%>
			
		</TABLE>
</body>
</html>